package com.pap.msg.message.service.impl;

import com.pap.msg.message.mapper.MsgContentMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pap.msg.message.entity.MsgContent;
import com.pap.msg.message.service.IMsgContentService;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Transactional
@Service("msgContentService")
public class MsgContentServiceImpl implements IMsgContentService {

    @Resource(name = "msgContentMapper")
    private MsgContentMapper mapper;

    @Override
    public int deleteByPrimaryKey(String id) {
       return mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int selectCountByMap(Map<Object, Object> map) {
      return mapper.selectCountByMap(map);
    }

    @Override
    public List<MsgContent> selectListByMap(Map<Object, Object> map) {
        return mapper.selectListByMap(map);
    }

    @Override
    public int insert(MsgContent record) {
       return mapper.insert(record);
    }

    @Override
    public int insertSelective(MsgContent record) {
       return mapper.insertSelective(record);
    }

    @Override
    public MsgContent selectByPrimaryKey(String id) {
       return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MsgContent record) {
       return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MsgContent record) {
      return mapper.updateByPrimaryKey(record);
    }
}